package cn.mashiro.common.enums;

public enum ResultCode {
    SUCCESS(200, "成功"),
    ERROR(400, "服务器出了点小差~");

    private final int code;

    private final String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
